package ar.edu.unq.wannaplay.pages.employee;

import org.apache.wicket.spring.injection.annot.SpringBean;

import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.employee.EmployeesViewPanel;
import ar.edu.unq.wannaplay.services.EmployeeService;

public class EmployeesViewPage extends WPPage {

    @SpringBean(name = "service.employeeService")
    private EmployeeService service;

    public EmployeesViewPage() {
        super("Employees View Page");
        this.initialize();
        this.addLanguageSelect();
    }

    @Override
    protected void addMainContent() {
        EmployeesViewPanel panel = new EmployeesViewPanel("mainContent", service);
        this.add(panel);
    }

    public EmployeeService getService() {
        return service;
    }

    public void setService(final EmployeeService service) {
        this.service = service;
    }
}
